import { NgModule } from '@angular/core';
import { RouterModule, Routes, Route } from '@angular/router';

// import { CrisisListComponent } from './crisis/crisis-list.component';
// import { HeroListComponent } from './heroes/hero-list.component';
import { PageNotFoundComponent } from './shared/not-found.component';
import { ComposeMessageComponent } from './compose-message.component';

const routes: Routes = [
  // { path: 'crisis-center', component: CrisisListComponent },
  // { path: 'hero/:id', component: HeroDetailComponent },
  // { path: 'heroes',
  //   component: HeroListComponent,
  //   data: { title: 'Heroes List' }
  //  },
  {
    path: 'compose',
    component: ComposeMessageComponent,
    outlet: 'popup'
  },
  {
    path: '',
    redirectTo: '/heroes',
    pathMatch: 'full'
  },
  { path: '**', component: PageNotFoundComponent },
];

@NgModule({
  imports: [
    RouterModule.forRoot(
      routes,
      {
        enableTracing: false
      }
    )
  ],
  exports: [
    RouterModule
  ]
})

export class AppRoutingModule {

}
